*, h1, h2, h3, ul, p, a, span {
  margin: 0;
  padding: 0;
  font-size: 18px;
  list-style: none;
  text-decoration: none;
  color: #000000;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.clear {
  clear: both;
}

.nav {
  display: flex;
  margin: .5rem;
  justify-content: center;

  li {
    padding: .5rem 2rem;
    margin: 0 .5rem;
    border-radius: 1.2rem;
    border-bottom: 1px solid #f40;
  }

  li:hover, li.active {
    background-color: #f40;
  }
}

.native {
  max-width: 680px;
  background-color: #ff9999;
  margin: 0 auto;

  .goods-item {
    box-sizing: border-box;
    float: left;
    text-align: center;
    line-height: 20rem;
    width: 339px;
    height: 30rem;
    padding: .5rem;
    border-left: 1px solid #f40;
    border-bottom: 1px solid #f40;

    .pic-par {
      display: block;
      height: 21rem;

      img {
        width: 100%;
        height: 100%;
        border-radius: 1rem 1rem .5rem .5rem;
      }
    }

    .desc {
      display: block;
      padding: .8rem 0 0 0;
      height: 9rem;

      .title {
        display: block;
        text-align: left;
        margin: .5rem 0;
        height: 2.4rem;
        width: 100%;
        font-size: .6rem;
        font-weight: 700;
        line-height: 1.2rem;
        overflow: hidden;
        letter-spacing: .1rem;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        //控制第几行的省略号
        word-break: break-all;
        display: -webkit-box;

      }

      .line-2 {
        height: 2.1rem;

        span {
          display: inline-block;
          height: 2.1rem;
          line-height: 1rem;
          color: #f20;
          font-size: 1.2rem;

          &:nth-child(1)::before {
            content: '￥';
            color: #f40;
            font-size: .9rem;
          }

          &:nth-child(2)::before {
            content: '销量：';
            color: #f40;
            font-size: .9rem;
          }
        }
      }
    }
  }
}